<div class="row">

    <span class="span12">

	 	<h3>Photos correspondantes au tag "<?php echo $leTag->mot; ?>" </h3>
        <br/><br/>

        <ul class="thumbnails">

			<?php $i = 0; ?>
				
			<?php foreach ($lesPhotos as $k => $v): ?>

				<?php if($i % 5 == 0) : ?>
					<li class="span12">
				<?php endif; ?>

					<li class="span2">
    					<a href="<?php echo BASE_URL.'/photos/index/'.$v->idPhoto; ?>" class="thumbnail">
    						<img src="<?php echo BASE_URL?>/webroot/img/imgusers/<?php echo $v->idMembre.'/'.$v->idAlbum.'/'.$v->url ?>"  alt="">
    					</a>
    					<p><?php echo $v->nom; ?></p>
					</li>
						
				<?php if(($i+1) % 4 == 0) : ?>
					</li>
				<?php endif; ?>
				
				<?php $i++; ?>	
				
			<?php endforeach; ?>
			
			<?php if($i % 5 != 0) : ?>
				</li>
			<?php endif; ?>

        </ul>

    </span>
    
</div> 

